import { Controller, Get } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AppService } from './app.service';

@Controller('app')
export class AppController {
  constructor(private readonly appService: AppService) {}

  @ApiTags('公共接口')
  @Get('hello')
  getHello(): string {
    return this.appService.getHello();
  }
  @Get('list')
  getList() {
    return [
      {
        na: 'lisan',
      },
      {
        na: '张三',
      },
    ];
  }
}
